package com.feri.fc.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.feri.fc.type.PhysicianStatus;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 陪诊师表(Physician)表实体类
 *
 * @author Feri
 * @since 2024-09-20 09:57:11
 */
@Data //简化类 自动生成 getter和 setter 和 toString
@TableName("t_physician") //标记对应的表名
@NoArgsConstructor
public class Physician {
    //序号，主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //用户ID
    private Integer uid;
    //真实姓名
    private String name;
    //手机号
    private String phone;
    //性别
    private String sex;
    //身份证号
    private String cardNo;
    //服务城市
    private String city;
    //籍贯地址
    private String address;
    //擅长领域
    private String excel;
    //身份证_正面
    private String cardFront;
    //身份证-反面
    private String cardBack;
    //健康证
    private String healthCard;
    //等级
    private Integer level;
    //积分
    private Integer score;
    //钱包余额
    private Double wallet;
    //状态
    private String status;
    //创建时间
    private Date createTime;
    //修改时间
    private Date updateTime;



    public Physician(Integer uid) {
        this.uid = uid;
        this.level = 1;
        this.score = 0;
        this.wallet = 0.0;
        this.status= PhysicianStatus.未审核.getValue();
        this.createTime=new Date();
        this.updateTime=new Date();
    }
}